<?php

// 检测PHP环境
if (version_compare ( PHP_VERSION, '5.3.0', '<' ))
	die ( 'require PHP > 5.3.0 !' );

	// 定义应用目录
define ( 'APP_PATH', realpath ( './Application' ) . '/' );
define ( 'APP_DEBUG', true );
define ( 'BUILD_DIR_SECURE', false );

if (@$_GET ['mobile'] == 1) {
	$_GET ['m'] = 'Mobile';
	$_GET ['s'] = str_replace ( 'Home/', 'Mobile/', @$_GET ['s'] );
} else {
	$_GET ['m'] = 'Home';
}

// 引入ThinkPHP入口文件
require './ThinkPHP/ThinkPHP.php';
?>
